package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the task database table.
 * 
 */
@Entity
@Table(name="task")
@NamedQuery(name="Task.findAll", query="SELECT t FROM Task t")
public class Task implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String taid;

	@Temporal(TemporalType.DATE)
	private Date tadate;

	private String tastate;

	private String tatheme;

	private String tatype;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="tacid")
	private Customer customer;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="tatname")
	private Staff staff;

	public Task() {
	}

	public String getTaid() {
		return this.taid;
	}

	public void setTaid(String taid) {
		this.taid = taid;
	}

	public Date getTadate() {
		return this.tadate;
	}

	public void setTadate(Date tadate) {
		this.tadate = tadate;
	}

	public String getTastate() {
		return this.tastate;
	}

	public void setTastate(String tastate) {
		this.tastate = tastate;
	}

	public String getTatheme() {
		return this.tatheme;
	}

	public void setTatheme(String tatheme) {
		this.tatheme = tatheme;
	}

	public String getTatype() {
		return this.tatype;
	}

	public void setTatype(String tatype) {
		this.tatype = tatype;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}